package com.xwaf.platform.web.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 
 * <p>
 * token
 * <p>
 * 
 * @author 李聪 <br>
 * @email xwaf_love@yeah.net <br>
 * @since JDK 1.8<br>
 * @date 2019年12月30日 上午9:18:13 <br>
 * @see 无<br>
 *      Copyright (c) 2019, xwaf_love@yeah.net All Rights Reserved.<br>
 */
public class OAuth2Token implements AuthenticationToken {

	private static final long serialVersionUID = 1L;

	private String token;

	public OAuth2Token(String token) {
		this.token = token;
	}

	@Override
	public String getPrincipal() {
		return token;
	}

	@Override
	public Object getCredentials() {
		return token;
	}
}
